export default function (timeArray) {
  let date = new Date(
    timeArray[0],
    timeArray[1] - 1,
    timeArray[2],
    timeArray[3],
    timeArray[4],
    timeArray[5]
  )
  return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')} ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}:${date.getSeconds().toString().padStart(2, '0')}`
}
